import axios from "axios";

const httpsInstance=axios.create({
    baseURL:'https://pcapi-xiaotuxian-front-devtest.itheima.net',
    timeout:5000
})

//请求拦截器
httpsInstance.interceptors.request.use(config=>{
    return config
 },e=>Promise.reject(e))

//响应式拦截器
httpsInstance.interceptors.response.use(res=>res.data,e=>{
    return Promise.reject(e)
})

export default httpsInstance